// ---- Created with 3Dmigoto v1.3.16 on Fri Oct 18 09:42:48 2019
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb0 : register(b0)
{
  float4 cb0[1];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : ATTRIBUTE3,
  float4 v1 : ATTRIBUTE4,
  float4 v2 : ATTRIBUTE5,
  float2 v3 : ATTRIBUTE6,
  out float4 o0 : SV_Target0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
float4 stereo = StereoParams.Load(0);
float4 params = IniParams.Load(0);

  r0.xyzw = t0.Sample(s0_s, v3.xy).xyzw;

  r0.xyzw = saturate(r0.xyzw * v2.xyzw + v1.xyzw);
  r0.xyz = log2(r0.xyz);
  o0.w = v0.w * r0.w;
  r0.xyz = cb0[0].xxx * r0.xyz;
  o0.xyz = exp2(r0.xyz);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Fri Oct 18 09:42:48 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                3   xyzw        0     NONE   float      w
// ATTRIBUTE                4   xyzw        1     NONE   float   xyzw
// ATTRIBUTE                5   xyzw        2     NONE   float   xyzw
// ATTRIBUTE                6   xy          3     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v0.w
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xy
dcl_output o0.xyzw
dcl_temps 1
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v3.xyxx, t0.xyzw, s0
mad_sat r0.xyzw, r0.xyzw, v2.xyzw, v1.xyzw
log r0.xyz, r0.xyzx
mul o0.w, r0.w, v0.w
mul r0.xyz, r0.xyzx, cb0[0].xxxx
exp o0.xyz, r0.xyzx
ret
// Approximately 0 instruction slots used

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
